package com.xqboss.apps.dto.system;

import com.xqboss.apps.domain.BaseTable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 关联公告
 * </p>
 *
 * @author admin
 * @since 2024-03-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SysAnnouncementCategoryComDto", description="关联公告")
public class SysAnnouncementCategoryComDto extends BaseTable implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "公告分类ID")
    @NotNull(message = "公告分类ID不能为空~")
    private Long categoryId;

    @ApiModelProperty(value = "公告ID集")
    @Size(min = 1,message = "至少传递一个公告ID~")
    private List<Long> ids;
}
